package basic;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 123
 * Date: 2023-05-09
 * Time: 19:51
 */
public class BookCase {
    private Book[] books  = new Book[15] ;
    private int count ;
    public BookCase(){
     this.books[0] = new Book("活着","小说" ,50 ,"北京出版社" ,"余华" ,"2017年6月",false );
     this.books[1] = new Book("卖白菜" ,"小说",50 ,"北京出版社","莫言","2012年1月",false);
      this.count = 2 ;
    }
   public Book getBook(int pow){
        return books[pow-1] ;
   }
   public void setBooks(int pow , Book book){
        this.books[pow-1] = book ;
        this .count += 1 ;
   }
    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
